from owl_common.base.model import AjaxResponse
from owl_common.descriptor.serializer import JsonSerializer
from ... import reg


@reg.api.route('/system/store/appList', methods=['GET'])
@JsonSerializer()
def get_app_list():
    return AjaxResponse.from_success(data=[{
        "id": "1",
        "name": "隐患识别助手",
        "description": "隐患识别助手",
        "avatar": "https://www.shinerayad.com/upfile/attached/20171111821293327838.jpg",
        "appUrl": "/hidden_danger/identification",
        "remark": None
    },{
        "id": "2",
        "name": "知识库",
        "description": "创建属于自己的本地知识库",
        "avatar": "https://www.shinerayad.com/upfile/attached/20171111821293327838.jpg",
        "appUrl": "/knowledge",
        "remark": None
    }])
